

package jetbrains.buildServer.server.graphql.model;

import jetbrains.buildServer.server.graphql.model.agentPool.AbstractAgentPool;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public class AuthorizeAgentPayload {
  private final Agent myAgent;
  private final AbstractAgentPool myTargetAgentPool;

  public AuthorizeAgentPayload(@NotNull Agent agent, @Nullable AbstractAgentPool targetAgentPool) {
    myAgent = agent;
    myTargetAgentPool = targetAgentPool;
  }

  @NotNull
  public Agent getAgent() {
    return myAgent;
  }

  @Nullable
  public AbstractAgentPool getTargetAgentPool() {
    return myTargetAgentPool;
  }
}